/*
 * Copyright (c) 2023-2025 110476592@qq.com
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * 1. Redistributions of source code must retain the above copyright notice,
 *    this list of conditions and the following disclaimer.
 * 2. Redistributions in binary form must reproduce the above copyright notice,
 *    this list of conditions and the following disclaimer in the documentation
 *    and/or other materials provided with the distribution.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 * POSSIBILITY OF SUCH DAMAGE.
 */

/**
 * @file global.h
 * @brief 截图工具 
 * @author 110476592@qq.com 
 * @note   承接Qt项目外包定制开发。长期接收C++项目实训学徒,联系QQ：110476592。
 */

 
#ifndef GLOBAL_H
#define GLOBAL_H
#if _MSC_VER >= 1600
#pragma execution_character_set("utf-8")
#endif
#include <ELwidgets>
#include <QString>
#include <el_global.h>
#include <QPoint>
#include <common/draw_context.h>

/**
   * @brief 命令
   */
enum class CommandType {
    CMD_CLIPBOARD,      ///< 拷贝到剪切板
    CMD_PEN,            ///< 选择画笔
    CMD_SAVE,           ///< 保存
    CMD_CLOSE,          ///< 关闭
    CMD_SHAP,           ///< 选择图形
    CMD_UNDO,           ///< 取消
    CMD_REDO,           ///< 重做
    CMD_CLEAN,          ///< 清除
    CMD_MOVE_TOOL_BAR,  ///< 移动工具栏

};

/**
 * @brief 图标字体ID
 *
 */

enum class IconFont {
    FA_SHAP = 0xe7f7,       ///< 形状
    FA_LINE = 0xe6bb,       ///< 直线
    FA_PEN = 0xe82d,        ///< 画笔
    FA_PENCIL = 0xe61b,     ///< 铅笔
    FA_RUBBER = 0xe647,     ///< 橡皮
    FA_CIRCLE = 0xe72f,     ///< 圆圈
    FA_CURVE_LINE = 0xe694, ///< 曲线
    FA_SCREENSHOT = 0xe628, ///< 截图
    FA_SHAPE = 0xe7f7,      ///< 图形
    FA_TEXT = 0xe649,       ///< 文字
    FA_COLOR = 0xe678,      ///< 颜色
    FA_ARROW = 0xe632,      ///< 箭头
    FA_UNDO = 0xe604,       ///< 撤销
    FA_REDO = 0xe606,       ///< 重做
    FA_CLOSE = 0xe624,      ///< 关闭
    FA_SAVE = 0xec09,       ///< 保存
    FA_RECT = 0xe790,       ///< 矩形
    FA_FILL_RECT = 0xe607,  ///< 实心矩形
    FA_CLIPBOARD = 0xea32,  ///< 剪切板
    FA_MOVE = 0xe617,       ///< 移动
    FA_BLUR = 0xe82e,       ///< 模糊
    FA_MAGIC = 0xea1f,      ///< 魔术画笔
    FA_POINT = 0xe600,      ///< 圆点
};

#endif // GLOBAL_H
